<?php

namespace App\Models;

use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
use Illuminate\Support\Facades\Request;
use Laravel\Sanctum\HasApiTokens;

class SysUserModel extends Model {

    protected $table = "sys_user";
    protected $primaryKey = "id";
    public $incrementing = false;
    protected $keyType = 'string';
    protected $connection = '';


    public function __construct(array $attributes = [])
    {
        $this->connection = Request::header('Environment', 'oms_test') . '_jeecg';
        parent::__construct($attributes);
    }


}
